class myUtils {
  static stateMapper (...args) {
    return state => {
      return args.reduce((cState, arg) => {
        return typeof arg === 'string' ? cState[arg] : cState
      }, state)
    }
  }
}

export default myUtils
